package com.adjaisd.scarecrow.testJava;

import com.adjaisd.scarecrow.service.RedisService;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
public class testRedis {

    @Autowired
    RedisService redisService;

    @Test
    void testSet(){
        redisService.set("user2", "value", 5);
        System.out.println(redisService.get("user2"));

        redisService.set("user2", "value2", 5);
        System.out.println(redisService.get("user2"));
    }
}
